package com.woniuxy.oop;

/**
 * description: TestInterface <br>
 * date: 2022/1/31 10:15 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */
public class TestInterface {
    public static void main(String[] args) {
        GoodMan goodMan = new GoodMan();
        String eat = goodMan.eat();
        System.out.println(eat);
        goodMan.helpOther();
        Ange ange = new Ange();
        ange.fly();
        ange.helpOther();
    }
}

interface Volant {
    int FLY_HEIGHT = 1000;

    void fly();
}

interface Honest {
    void helpOther();
}

class Ange implements Volant, Honest {

    @Override
    public void fly() {
        System.out.println("开心的飞");
    }

    @Override
    public void helpOther() {
        System.out.println("善良的天使");
    }
}

class GoodMan implements Honest {

    @Override
    public void helpOther() {
        System.out.println("大态势");
    }

    public String eat() {
        return "吃螃蟹";
    }
}